package com.foxitcloud.webpdf.common;

import java.io.Serializable;

public class ImgSignatureData extends SignatureData implements Serializable{	
	private static final long serialVersionUID = -4063985217077514831L;
	private int 	rotate;  			//旋转
	private float	zoom;				//缩放
	private int 	quality;			//质量
	private byte[]	buffer;				
	private long	size;
	private TextSignatureData textSignData;
	
	public ImgSignatureData() {
		this.type = 1;
		this.rotate = 0;
		this.zoom = 1.0f;
		this.quality = 100;
		this.textSignData = null;
	}
	
	public void setRotate(int rotate) {
		this.rotate = rotate;
	}	

	public void setZoom(float zoom) {
		this.zoom = zoom;
	}
	
	public void setQuality(int quality) {
		this.quality = quality;
	}

	public void setBuffer(byte[] buffer) {
		this.buffer = buffer;
	}


	public void setSize(long size) {
		this.size = size;
	}
	
	public void setSignId(String id,float fontSize,long color){
		if(null == textSignData){
			textSignData = new TextSignatureData();
		}
		textSignData.setSignText(id);
		textSignData.setFontSize(fontSize);
		textSignData.setColor(color);
	}

	@Override
	public void setxPos(float xPos) {
		this.xPos = xPos;		
	}

	@Override
	public void setyPos(float yPos) {
		this.yPos = yPos;		
	}
}


